package com.lagou.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    public <E> List<E> selectList(String statementId, Object... params) throws Exception;

    public <T> T selectOne(String statementId, Object... params) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);

    public int insert(String statementId) throws SQLException;

    public int insert(String statementId, Object... params) throws SQLException;

    public int update(String statementId) throws SQLException;

    public int update(String statementId, Object... params) throws SQLException;

}
